/**
 * @fileOverview The "find" plugin.
 */
VED.plugins.add( 'find', {
   requires: 'dialog',
   lang: 'en,ru', // %REMOVE_LINE_CORE%
   icons: 'find,find-rtl,replace', // %REMOVE_LINE_CORE%
   init: function( editor ) {
      var findCommand = editor.addCommand( 'find', new VED.dialogCommand( 'find' ) );
      findCommand.canUndo = false;
      findCommand.readOnly = 1;

      var replaceCommand = editor.addCommand( 'replace', new VED.dialogCommand( 'replace' ) );
      replaceCommand.canUndo = false;

      if ( editor.ui.addButton ) {
         editor.ui.addButton( 'Find', {
            label: editor.lang.find.find,
            command: 'find',
            toolbar: 'find,10'
         });

         /*editor.ui.addButton( 'Replace', {
            label: editor.lang.find.replace,
            command: 'replace',
            toolbar: 'find,20'
         });*/
      }

      VED.dialog.add( 'find', this.path + 'dialogs/find.js' );
      /*VED.dialog.add( 'replace', this.path + 'dialogs/find.js' );*/
   }
});

VED.config.find_highlight = { element: 'span', styles: { 'background-color': '#004', color: '#fff' } };





